<?php

namespace app\api\logic;

use app\common\model\StartUp;

class StartUpLogic
{
    protected StartUp $model;

    public function __construct()
    {
        $this->model = new StartUp();
    }

    public function index()
    {
        return $this->model->field('id,title,image,duration,createtime')
            ->where('status',$this->model::STATUS_ENABLE)
            ->where('deletetime',$this->model::DELETE_TIME)
            ->find();
    }

}